'''
Created on 2019年6月10日

@author: Administrator
'''
import pymysql
db = pymysql.connect("47.100.212.206","root","root","test")

cursor = db.cursor()

cursor.execute("SELECT VERSION()")

data = cursor.fetchone()






print("Database version :%s" %data)

